//
//  PackFileDown.h
//  etionLib
//
//  Created by JingXing Wu on 12-5-12.
//  Copyright (c) 2012年 GuangZhouXuanWu. All rights reserved.
//

#import "XLGManagerService.h"

//#import "RichTextMessageManagerService.h"

//#import "FsfilesObj.h"

@class CPackFileDown;

@protocol CPackFileDownDelegate<NSObject>

-(void)FileDownloadError:(NSInteger)nResult error:(NSError*)error;

-(void)FileDownloadFinish;

-(NSUInteger)FileLength:(NSUInteger)nLength;

-(void)FileDownloadPack:(NSData*)data;

@end

@interface CPackFileDown : XLGManagerService
{
//    CFsfilesObj* m_fsfile;
    BOOL m_bDownlaod;
    id<CPackFileDownDelegate> m_delegate;
}

@property(nonatomic,assign) id<CPackFileDownDelegate> m_delegate;

-(int)Connect;

-(void)Close;

-(void)Cancel;

//-(void)Start:(CFsfilesObj*)fsfile;

@end
